#include<stdio.h>

int main()
{
    int n=0, ret=0;
    char c = 0;
    int k = 1; //辅助判断变量，为1是正常输出，为0是出现错误
    scanf("%d",&n);
    ret = n;
    while(c != '=' && k == 1)
    {
        scanf("%c",&c);
        if(c == '=')
        {
            break;
        }
        scanf("%d", &n);
        switch (c)
        {
        case '+':
            ret = ret + n;
            break;
        case '-':
            ret = ret - n;
            break;
        case '*':
            ret = ret*n;
            break;
        case '/':
            if(n!=0)
            {
                ret = ret/n;
                break;
            }
            else
            {
                k = 0;
                break;
            }
        default:
            k = 0;
            break;
        }
    }
    if(k == 1)
    {
        printf("%d", ret);
    }
    else
    {
        printf("ERROR");
    }
    
    return 0;
}